#-*- coding: utf-8 -*-

inputStr = input( "Please enter a number: " )
inputNum1 = int( inputStr )

inputStr = input( "Please enter another number: " )
inputNum2 = int( inputStr )

userAction = input( "What do you want to do? 1. add  2. sub  3. cross  4. div" )

def add( a, b ):
	result = a + b
	return result
	
def sub( a, b ):
	result = a - b
	return result
	
def cross( a, b ):
	result = a * b
	return result

def div( a, b ):
	result = a / b
	return result

def doCalc( userAction, a, b ):
	if userAction == 1:
		result = add( a, b )
		return result
	elif userAction == 2:
		result = sub( a, b )
		return result
	elif userAction == 3:
		result = cross( a, b )
		return result
	elif userAction == 4:
		result = div( a, b )
		return result

result = doCalc( userAction, inputNum1, inputNum2 )
print "The result is " + str( result ), 
print ". Have a nice day!"
